pkgname=vdr-softdevice
pkgver=0.4.0
pkgrel=1
arch=('i686')
pkgdesc="FB, Xv, DirectFB and vidix output plugin for VDR"
url="http://developer.berlios.de/projects/softdevice/"
license=('GPL')
depends=('vdr' 'alsa-lib' 'ffmpeg' 'libxv' 'libxinerama')
source=(http://download.berlios.de/softdevice/$pkgname-$pkgver.tgz \
	vdr-softdevice-ffmpeg-version.diff)
md5sums=('216dff52bbde4cd5ed30a8c71938d064'
         'e08de7de135ac7fc660c26a1962ccb9b')

build() {
  cd $startdir/src/softdevice-$pkgver

  patch -Np1 -i $startdir/src/vdr-softdevice-ffmpeg-version.diff || return 1

  ./configure
  sed -i \
	 -e 's:@cp $(CPOP*TS) $@ :install -D -m 755 $@ $(DESTDIR):' \
	 Makefile
  make VDRDIR=/usr/include/vdr LIBDIR=/usr/lib/vdr DESTDIR=$startdir/pkg all || return 1
}
